import { IModeData, IActionData } from '../types/IContext';

export const staticModeList: IModeData[] = [
  {
    id: 1,
    title: '精煮'
  },
  {
    id: 2,
    title: '煲汤'
  },
  {
    id: 3,
    title: '热饭'
  },
  {
    id: 4,
    title: '炖焖'
  },
  {
    id: 5,
    title: '酸奶'
  },
  {
    id: 6,
    title: '甜品'
  },
  {
    id: 7,
    title: '煮粥'
  },
  {
    id: 8,
    title: '快煮'
  },
  {
    id: 9,
    title: '保温'
  }
];

export const staticActionList: IActionData[] = [
  {
    id: 1,
    title: '运行时间',
    num: 45,
    unit: '分钟',
    key: 'time'
  }
];

export const tempColumn = () => {
  let list = [];
  for (let i = 80; i <= 200; ) {
    list.push({ text: i, value: i });
    i = i + 5;
  }

  return list;
};

// 设置时间
export const timeColumn = () => {
  let list = [];
  for (let i = 10; i <= 480; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 10;
  }

  return list;
};
// 设置时间-2
export const warmTimeColumn = () => {
  let list = [];
  for (let i = 10; i <= 720; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 10;
  }

  return list;
};

// 预约时间-时
export const timeHourColumn = () => {
  let list = [];
  for (let i = 0; i <= 24; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 1;
  }

  return list;
};

// 预约时间-分
export const timeMinColumn = () => {
  let list = [];
  for (let i = 0; i <= 59; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 1;
  }

  return list;
};
// 预约时间-分
export const timeMinColumn1 = () => {
  let list = [];
  for (let i = 1; i <= 59; ) {
    list.push({ text: `${i}`, value: `${i}` });
    i = i + 1;
  }

  return list;
};

export const deviceId = 'CMCC-591187-B812DAC8DC86';
